package OOday02.HomeWork2.Person;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/7 18:18
 */
public class Test {
    public static void main(String[] args) {
        Student sd=new Student("一年级二班",2021216511,"李华",19,"西安");
        sd.eat();
        sd.sleep();
        sd.sayHi();
        sd.study();

        System.out.println("_____________________");

        Teacher th=new Teacher(5000,"张三",20,"hebei");
        th.eat();
        th.sleep();
        th.sayHi();
        th.teach();

        System.out.println("_____________________");

        Doctor dr=new Doctor("赵四",20,"东北","尼古拉斯");
        dr.eat();
        dr.sleep();
        dr.sayHi();
        dr.cut();
    }
}
